package cn.wolfcode.crm.domain;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
@Getter
@Setter
@ToString
public class Customer {

    public static final int GENDER_FEMALE   = 0; // 女
    public static final int GENDER_MALE     = 1; // 男

    public static final int STATUS_POTENTIAL = 0;  // 潜在
    public static final int STATUS_FORMAL    = 1;  // 正式
    public static final int STATUS_POOL      = 2;  // 资源池
    public static final int STATUS_FAILURE   = 3;  // 失败
    public static final int STATUS_LOST      = 4;  // 流失


    private Long id;
    private String name;
    private Integer age;
    private Integer gender;
    private String tel;
    private String qq;
    private SystemDictionaryitem job;
    private SystemDictionaryitem source;
    private Employee seller;
    private Employee inputUser;
    private Date inputTime;
    private Integer status;
    private Date positiveTime;

public String getStatusName(){
        if(this.status==STATUS_POTENTIAL){
            return "潜在";
        }else if(this.status==STATUS_FORMAL){
            return  "正式";
        }else if(this.status==STATUS_POOL){
            return  "资源池";
        }else if(this.status==STATUS_FAILURE){
            return  "失败";
        }else if(this.status==STATUS_LOST){
            return  "流失";
        }else {
            return  "未知";
        }
}

public String getGenderName(){
    if(this.gender==GENDER_FEMALE){
        return "女";
    }else if(this.gender==GENDER_MALE){
        return "男";
    }else {
        return "未知";
    }
}








}